from enum import Enum

class Color(Enum):
    RED = 'red'
    GREEN = 'green'
    BLUE = 'blue'

color = Color(input("Enter a color (RED, GREEN, BLUE): "))

match color:
    case Color.RED:
        print("You entered RED")
    case Color.GREEN:
        print("You entered GREEN")
    case Color.BLUE:
        print("You entered BLUE")
    case _:
        print("Invalid color")